#include <stdio.h>
#include <stdlib.h>

//https://leetcode.cn/problems/array-partition/description/

int cmp(const void* e1, const void* e2)
{
    return *(int*)e1 - *(int*)e2;
}
int arrayPairSum(int* nums, int numsSize) {
    qsort(nums, numsSize, sizeof(int), cmp);
    int result = 0;
    for (int i = 0; i < numsSize; i += 2)
    {
        result += nums[i];
    }
    return result;
}

int main()
{
	return 0;
}